home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / enigma / earcd / utility / utilcli / mscclcmd.lha / ReverseMem.doc < prev   
Text File  |  1996-09-23  |  2KB  |  57 lines

  1. ReverseMem V1.0 by Chris Hodges
  2. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3.  
  4. Introduction
  5. ~~~~~~~~~~~~
  6. This command installs a small patch in  exec's  memory  allocation  routine
  7. which  will  set  the  MEMF_REVERSE bit on every memory allocation. Why can
  8. this be a sensible to do? Look at this example:
  9.  
  10. During boot-up, you're displaying a  nice  boot  picture  in  a  very  high
  11. resolution,  let's  say 800*600 in HAM8. This screen will take about half a
  12. megabyte of chip memory. After your workbench has been loaded,  the  screen
  13. disappears,  but  oh  no,  the  chip memory is fragmented, the largest chip
  14. memory chunk is only about 1 MB large.  This  problem  can  be  avoided  by
  15. telling  exec  to allocate the memory for the screen in the lower region of
  16. the memory, which is done by setting the MEMF_REVERSE flag. By  doing  this
  17. on temporary memory allocations, your memory will stay much less fragmented
  18. than without.
  19.  
  20. Requirements
  21. ~~~~~~~~~~~~
  22. ReverseMem needs Kick 2.04 or  higher.  The  use  of  patch  handlers  will
  23. probably cause some problems and should be avoided (not tested, however).
  24.  
  25. Usage
  26. ~~~~~
  27. ReverseMem [OFF] [CHIPONLY] [NOCHIP]
  28.  
  29. The patch will be installed, if you don't specify the OFF switch.
  30.  
  31. Optionally, you can give the CHIPONLY or NOCHIP keywords which  will  force
  32. the  patch  to  be  only  applied  on chip memory (CHIPONLY) or fast memory
  33. (NOCHIP).
  34.  
  35. ReverseMem  should  be  turned  off  directly  after  the  critical  memory
  36. allocation. Example from my startup-sequence:
  37.  
  38.   ReverseMem >NIL: CHIPONLY
  39.   PicBoot DH1:Grafik/BootLogos/#? FJ FI 2 FO 3 FWB 1 BB DL 125 P D
  40.   ReverseMem >NIL: OFF
  41.  
  42. History
  43. ~~~~~~~
  44. V1.0 (30-Jun-96): First release.
  45.  
  46. Contact address
  47. ~~~~~~~~~~~~~~~
  48. Any mails or donations to:
  49.  
  50. Chris Hodges                    Account: 359 68 63
  51. Kennedystr. 8                   BLZ    : 700 530 70
  52. D-82178 Puchheim                Bank   : Sparkasse Fürstenfeldbruck
  53. Germany
  54. Tel.: +49-89/8005856
  55. Email: chris@sixpack.pfalz.de
  56.  
  57.